score an own goal

Translations
marquer contre son camp
Definitions
To accidentally score a goal against one's own team, giving a point to the opposing team, typically in sports like soccer or hockey. The phrase can also be used metaphorically to describe an action that unintentionally harms one's own interests.